<template>
  <div class="cartlist">
    <cart-list-item
      :key="index"
      v-for="(item, index) in cartList"
      :product="item"
    ></cart-list-item>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import CartListItem from "./CartListItem";
export default {
  name: "cartList",
  components: {
    CartListItem,
  },
  computed: {
    ...mapGetters(["cartList"]),
  },
};
</script>

<style scoped>
.cartlist {
  padding-top: 10px;
}
</style>
